package com.feizhoutuobang.shapeline.bo.impl;

import java.util.Date;

import com.feizhoutuobang.shapeline.bo.SubscriptionFeed;
import com.feizhoutuobang.shapeline.util.Calendar;

public class SubscriptionFeedImpl implements SubscriptionFeed {
	
	private String id;
	private String subscriptionId;
	private String feedId;
	private String lastPublishTime = Calendar.INVALID_TIME;
	
	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String getSubscriptionId() {
		return subscriptionId;
	}

	@Override
	public void setSubscriptionId(String subscriptionId) {
		this.subscriptionId = subscriptionId;
	}

	@Override
	public String getFeedId() {
		return feedId;
	}

	@Override
	public void setFeedId(String feedId) {
		this.feedId = feedId;
	}

	@Override
	public Date getLastPublishTime() {
		return Calendar.parse(lastPublishTime);
	}

	@Override
	public void setLastPublishTime(Date lastPublishTime) {
		this.lastPublishTime = Calendar.format(lastPublishTime);
	}

	public String getLastPublishTime_() {
		return lastPublishTime;
	}
	
	public void setLastPublishTime_(String lastPublishTime) {
		this.lastPublishTime = lastPublishTime;
	}
}
